# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libiodata
pkgver=0.19.11
pkgrel=0
pkgdesc="A library for reading and writing simple structured data"
url="https://git.sailfishos.org/mer-core/libiodata"
arch="all"
license="LGPL-2.1-only"
makedepends="bison flex qt5-qtbase-dev argp-standalone"
subpackages="$pkgname-dev"
source="https://git.sailfishos.org/mer-core/libiodata/-/archive/$pkgver/libiodata-$pkgver.tar.gz"

build() {
	qmake-qt5
	make -j1 # Multi-threaded builds are broken
}

package() {
	INSTALL_ROOT="$pkgdir" make install
}

sha512sums="3b86a0c76fc995a42d3b4fac8fd504696a80d627a04b37adb01cf3da6533e5bf7fef0319589da1cc1d3224cf8a14437166d20b302cd661f9aad70bab3a23f585  libiodata-0.19.11.tar.gz"
